package com.huang.foundation.fallback;

import com.huang.entity.result.HStringResult;
import com.huang.entity.result.ResponseEnum;
import com.huang.entity.result.ResultBuilder;
import com.huang.foundation.endpoint.SensitiveWordsApi;
import com.huang.foundation.entity.request.SensitiveWordsCheckParam;

import java.util.List;


/**
 * @Author HuangShen
 * @Date 2022/3/2 08:14
 * @Describe
 */
public class SensitiveWordsFallback implements SensitiveWordsApi {
    @Override
    public HStringResult<List<String>> SensitiveWordsCheck(SensitiveWordsCheckParam sensitiveWordsCheckParam) {
        return ResultBuilder.failHSingle(ResponseEnum.SERVICE_RPC_TIME_OUT_ERROR);
    }

    @Override
    public HStringResult<String> SensitiveWordsReplace(SensitiveWordsCheckParam sensitiveWordsCheckParam) {
        return ResultBuilder.failHSingle(ResponseEnum.SERVICE_RPC_TIME_OUT_ERROR);
    }
}
